import request from "@/utils/request";

export function getStoreList(query) {
    return request({
        url: "/system/store/list",
        method: "get",
        params: query,
    });
}

export function getStoreDetailList(Id) {
    return request({
        url: "/system/store/" + Id,
        method: "get",
    });
}

// 新增门店
export function addStore(data) {
    return request({
        url: "/system/store",
        method: "post",
        data: data,
    });
}

// 修改门店
export function updateStore(data) {
    return request({
        url: "/system/store",
        method: "put",
        data: data,
    });
}
// 删除门店
export function delstore(Id) {
    return request({
        url: '/system/store/' + Id,
        method: 'delete'
    })
}